/*----------------------------------------------------------------------------*\
| /gamemode/shared.lua                 | base shared file                | SHD |
\*----------------------------------------------------------------------------*/

zday = {}

// Include shared files
include("headcrabs.lua")
include("infection.lua")
include("time.lua")
include("scoring.lua")

GM.Name 	= "Z-Day" 
GM.Author 	= "Team Z-Day" 
GM.Email 	= "adam@rezich.com" 
GM.Website 	= "http://adam.rezich.com/zday" 


function PrecacheZombies()
	for k,v in pairs(ZombieModels) do
		util.PrecacheModel(v)
	end
end
hook.Add("InitPostEntity","PrecacheZombies",PrecacheZombies)

ZombieModels = {}
table.insert(ZombieModels,"models/zombie/zm_classic.mdl")
table.insert(ZombieModels,"models/zombie/zm_classic_01.mdl")
table.insert(ZombieModels,"models/zombie/zm_classic_02.mdl")
table.insert(ZombieModels,"models/zombie/zm_classic_03.mdl")
table.insert(ZombieModels,"models/zombie/zm_classic_04.mdl")
table.insert(ZombieModels,"models/zombie/zm_classic_05.mdl")
table.insert(ZombieModels,"models/zombie/zm_classic_06.mdl")
table.insert(ZombieModels,"models/zombie/zm_classic_07.mdl")
table.insert(ZombieModels,"models/zombie/zm_classic_08.mdl")
table.insert(ZombieModels,"models/zombie/zm_classic_09.mdl")

function RandomZombieModel()
	local rnd=math.random( 1, 10 )
	return ZombieModels[rnd]
end
